package com.cloud.test;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author
 *
 * 熔断机制测试HystrixController
 **/
@RestController
public class HystrixController {

    @Resource
    private HystrixService hystrixService;

    @PostMapping("/hystrix")
    public String test() {
        return hystrixService.hello();
    }
}
